package com.ofood.springcloud.service.impl;

import com.ofood.springcloud.dao.FoodDao;
import com.ofood.springcloud.domain.Food;
import com.ofood.springcloud.service.FoodService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class FoodServiceImpl implements FoodService {
    @Resource
    FoodDao foodDao;

    @Override
    public int create(Food food) {
        return foodDao.create(food);
    }

    @Override
    public Food getFoodById(long foodId) {
        return foodDao.getFoodById(foodId);
    }
}
